package com.bdzl.credit.servicefeign;

import com.bdzl.credit.servicefeign.impl.FeignAdminServiceHystrix;
import com.bdzl.pub.config.Constant;
import com.bdzl.pub.entity.data.UserInfoDO;
import com.bdzl.pub.entity.sys.ConfigDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name="loanAdmin",fallback = FeignAdminServiceHystrix.class,url = Constant.sys+":8001")
public interface FeignAdminService {


    @PostMapping("/bdzl/config/getByConfigNo")
    ConfigDO getByConfigNo(@RequestParam("configNo") String configNo);

    @PostMapping("/bdzl/userInfo/getSpouse")
    UserInfoDO getSpouse(@RequestParam("conCardid") String conCardid);
}
